package praktikum_2_ylesanded.ylesanne_1;

/**
 * Created by IntelliJ IDEA.
 * User: Jaan Sepp and Martti Elias
 * Date: 2.10.11
 * Time: 14:51
 */
public class ListNode {
  ListNode nextNode = null;
  int nodeValue;

  public ListNode(ListNode node, int value) {
    nextNode = node;
    nodeValue = value;
  }

  public ListNode getNextNode() {
    return nextNode;
  }

  public int getNodeValue() {
    return nodeValue;
  }

}
